// answers : 1, 3, 1, 1, 4

var aAnswers = new Array( 5 );

aAnswers[ 0 ] = 1;
aAnswers[ 1 ] = 3;
aAnswers[ 2 ] = 1;
aAnswers[ 3 ] = 1;
aAnswers[ 4 ] = 4;

function processQuiz()
{
	var aResponses = document.forms.form1.question0;
	
	var nCorrectResponses = 0;
	
	if( aResponses[ aAnswers[ 0 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;	
	}
		
	aResponses = document.forms.form1.question1;
	
	if( aResponses[ aAnswers[ 1 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form1.question2;
	
	if( aResponses[ aAnswers[ 2 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form1.question3;
	
	if( aResponses[ aAnswers[ 3 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	aResponses = document.forms.form1.question4;
	
	if( aResponses[ aAnswers[ 4 ] ].checked == true )
	{
		nCorrectResponses = nCorrectResponses + 1;
	}
	
	if( nCorrectResponses == 5 )
	
	{
		document.getElementById( "picture1" ).src = "graphics/smile.svg";
		alert( "Correct! You Get the Best Oscar for a Movie Fan!" );
		
	}
	else
	{
		document.getElementById( "picture1" ).src = "graphics/frown.svg";
		alert( "Wrong! No Oscar for you!" );
	}
}